Skip to content

fix(roster): trust complete Cursor inventory - #601

Merged
solomonneas merged 1 commit into
mainfrom
codex/issue-596-cursor-inventory
Jul 28, 2026
Merged

fix(roster): trust complete Cursor inventory#601
solomonneas merged 1 commit into
mainfrom
codex/issue-596-cursor-inventory

Conversation

@solomonneas

Copy link
Copy Markdown
Collaborator

Summary

  • Capture cursor-agent models through a regular temporary file so Cursor does not cut the inventory at 8 KiB.
  • Treat incomplete or malformed Cursor listings as unavailable instead of reporting working models as missing.
  • Keep exact and narrow family/version fuzzy diagnostics unchanged.

Root cause

Cursor returned 8,844 bytes when stdout was a regular file but stopped at exactly 8,192 bytes when stdout was a pipe. Brigade used pipe capture and accepted the opening Available models header as proof that the truncated inventory was complete.

The probe now validates Cursor stdout only, requires its closing Tip: marker, and rejects malformed body rows before absence can be reported.

Verification

  • pytest -q tests/test_model_inventory.py tests/test_roster_cmd.py tests/test_seat_health.py
  • Three fresh live probe rounds returned exact for both kimi-k2.7-code and glm-5.2-high.
  • ./scripts/verify: 4,651 passed, 3 skipped; coverage 82.92%.

Closes #596

Co-Authored-By: Codex <codex@openai.com>
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 580101a3-4280-457a-b90d-24a3a4527bca

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/issue-596-cursor-inventory

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@solomonneas solomonneas self-assigned this Jul 28, 2026
@solomonneas
solomonneas merged commit 0260985 into main Jul 28, 2026
28 checks passed
@solomonneas
solomonneas deleted the codex/issue-596-cursor-inventory branch July 28, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

roster doctor: live Cursor models reported as absent from inventory

1 participant